<div class="path">
    <i class="iconfont icon-shouye1"></i>
    <a href="{url('admin/default/welcome')}">开始</a> / 
    <a href="{url('service/index')}">换新管理</a>
</div>
<div class="table-head fn-clear">
    <div class="fn-l">
        <a href="{url('service/index')}" class="button">
            <i class="iconfont icon-xiangzuo1"></i> 返回
        </a>
    </div>
</div>
<div class="m10">
<form id="form" action="{url('service/edit')}">
<table class="table table-border">
    <tr class="bg-f5">
      <th class="w100">跟踪号:</th>
      <td>{$info['number']}</td>
      <th class="w100">IMEI号:</th>
      <td>{$info['imei']}</td>
      <th class="w100">入库时间:</th>
      <td>
        {if $info['add_time']}{date('Y-m-d H:i',$info['add_time'])}{/if}
      </td>
    </tr>
    <tr class="bg-f5 w100">
      <th>客户描述故障:</th>
      <td colspan="5">{$info['fault_why']}</td>
    </tr>
    <tr>
      <th></th>
      <td colspan="5">
        <a title="选择换新的机型" href="javascript:void(0);" url="{url('service/add_bom',array('id'=>$info['id']))}" class="button button-xifen win">
        <i class="iconfont icon-xiangxia"></i> 选择换新的机型
        </a>
      </td>
    </tr>
</table>
<table class="table table-border mt10">
<thead>
    <tr>
        <td class="fn-tac w60">#</td>
        <td>手机名称</td>
        <td class="w100 fn-tac">手机代码</td>
        <td class="fn-tac w60">操作</td>
    </tr>
</thead>
<tbody>
{loop $list $vo}
<tr>
    <td class="fn-tac">{$vo['id']}</td>
    <td>{$vo['name']}</td>
    <td class="fn-tac">{$vo['code']}</td>
    <td class="fn-tac tip">
      <a href="javascript:void(0);" class="del" title="撤销" url="{url('service/del',array(bom_id=>$vo['bom_id'],id=>$vo['id'],act=>del))}">撤销</a>
    </td>
</tr>
{/loop}
</tbody>
</table>
</div>
<div class="btn fn-tac">
    <a href="{url('service/bom',array('id'=>$id))}" class="button button-blue">
          <i class="iconfont icon-xiangxia"></i> 下一步填写维修信息
    </a>
    <a href="{url('service/index')}" class="button button-yellow">
          <i class="iconfont icon-xiangzuo1"></i> 返回
    </a>
</div>
<script type="text/javascript">
Do('base','form','date','dialog',function(){ 
    $('.win').click(function(){$(this).win();});
    $('.del').click(function(){$(this).del();});
})
</script>